package jp.sourceforge.akjrcp.audiotools.operations;

import jp.sourceforge.akjrcp.audiotools.WaveFormViewer;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.commands.operations.AbstractOperation;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;

public class TestOperation extends AbstractOperation {
	public static Log log=LogFactory.getLog(TestOperation.class);
	WaveFormViewer viewer;
	
	public TestOperation(WaveFormViewer viewer) {
		super("");
		this.viewer=viewer;
	}

	@Override
	public IStatus execute(IProgressMonitor monitor, IAdaptable info)
			throws ExecutionException {
		log.trace("execute");
		return Status.OK_STATUS;

	}

	@Override
	public IStatus redo(IProgressMonitor monitor, IAdaptable info)
			throws ExecutionException {
		log.trace("redo");
		return Status.OK_STATUS;

	}

	@Override
	public IStatus undo(IProgressMonitor monitor, IAdaptable info)
			throws ExecutionException {
		log.trace("undo");
		return Status.OK_STATUS;

	}

}
